home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 416 < prev    next >
Encoding:
Text File  |  1996-08-05  |  814 b   |  37 lines

  1. Path: p114.ztm.euronet.nl!pooky
  2. From: pooky@euronet.nl
  3. Newsgroups: comp.lang.c++
  4. Subject: my problem: class decl. syntax error in turbo c++ 1.0 ???
  5. Date: Thu, 4 Jan 1996 14:55:36
  6. Organization: Euronet Internet
  7. Message-ID: <pooky.23.000EEDAD@euronet.nl>
  8. NNTP-Posting-Host: p114.ztm.euronet.nl
  9. X-Newsreader: Trumpet for Windows [Version 1.0 Rev A]
  10.  
  11. I'm using Borland Turbo C++ v1.00 on a 486dx2. Maybe the program is too old?
  12. Anyway I get the following error:
  13.  
  14. class time {
  15. int hr;
  16. int min;
  17. int sec;
  18. };
  19.  
  20. ... generates a 'declaration syntax error', but
  21.  
  22. struct time {
  23. int hr;
  24. int min;
  25. int sec;
  26. };
  27.  
  28. ... runs correctly.
  29.  
  30. Does anyone know what could be the problem? Please react!
  31. I suppose the problem is not in this code. Maybe I should I should 
  32. include some extra directories in my path?
  33.  
  34. Thanks for reading,
  35. Remko.
  36.  
  37.